package com.ruoyi.order.mapper;

import java.util.List;
import com.ruoyi.order.domain.ShoppingPurchase;

/**
 * 购买详情Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-09
 */
public interface ShoppingPurchaseMapper 
{
    /**
     * 查询购买详情
     * 
     * @param merchantOrderNumber 购买详情主键
     * @return 购买详情
     */
    public ShoppingPurchase selectShoppingPurchaseByMerchantOrderNumber(String merchantOrderNumber);

    /**
     * 查询购买详情列表
     * 
     * @param shoppingPurchase 购买详情
     * @return 购买详情集合
     */
    public List<ShoppingPurchase> selectShoppingPurchaseList(ShoppingPurchase shoppingPurchase);

    /**
     * 新增购买详情
     * 
     * @param shoppingPurchase 购买详情
     * @return 结果
     */
    public int insertShoppingPurchase(ShoppingPurchase shoppingPurchase);

    /**
     * 修改购买详情
     * 
     * @param shoppingPurchase 购买详情
     * @return 结果
     */
    public int updateShoppingPurchase(ShoppingPurchase shoppingPurchase);

    /**
     * 删除购买详情
     * 
     * @param merchantOrderNumber 购买详情主键
     * @return 结果
     */
    public int deleteShoppingPurchaseByMerchantOrderNumber(String merchantOrderNumber);

    /**
     * 批量删除购买详情
     * 
     * @param merchantOrderNumbers 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShoppingPurchaseByMerchantOrderNumbers(String[] merchantOrderNumbers);
}
